<include file="Public/header"/>
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
<h1>更新社团信息：</h1>
<form name="f1"  method="post" action="{:U('Index/updateUserGroup')}" enctype="multipart/form-data" class="form-horizontal">
     <input type="hidden"  name="gid" value="{$group.gid}"></input>
    <div class="form-group">
    <label for="groupname" class="col-sm-2 control-label">社团名称:</label>
    <div class="col-sm-6">
    <input type="text" class="form-control" id="groupname" name="groupname" placeholder="groupname" value="{$group.groupname}" >
    </div></div>

    <div class="form-group">
    <label for="team" class="col-sm-2 control-label">所在团队名:</label>
    <div class="col-sm-6">
    <select name="team" class="form-control">
        <option value="计科">计科</option>
        <option value="网工">网工</option>
        <option value="互联网">互联网</option>
    </select>
    <!-- <input type="text" class="form-control" id="team" name="team"  placeholder="team" value="{$group.team}"> -->
    </div></div>

    <div class="form-group">
    <label for="intro" class="col-sm-2 control-label">简介:</label>
    <div class="col-sm-6">
    <input type="intro" class="form-control" id="intro" name="intro" placeholder="intro" value="{$group.intro}" ></input>
    </div></div>

    <div class="form-group">
    <label for="exampleInputFile" class="col-sm-2 control-label" >logo:</label>
    <div class="col-sm-6">
    <img src="__PUBLIC__/Uploads/logo/{$group.logo}" class="img">
    <input type="file" id="exampleInputFile" name="logo">
    </div></div>

    <div class="form-group">
    <label for="date" class="col-sm-2 control-label">成立日期:</label>
    <div class="col-sm-6">
    <input type="date" class="form-control" id="date" name="regdate" placeholder="regdate"  value="{$group.regdate}"></input>
    </div></div>

    <div class="form-group">
    <label for="text" class="col-sm-2 control-label" >负责人学号:</label>
    <div class="col-sm-6">
    <input type="text" id="text" name="leader" value="{$group.leader}">
    </div></div>
    <div class="form-group">
    <div class="col-sm-offset-2 col-sm-6">
    <button type="submit" class="btn btn-default" >更改社团信息</button>
    </div></div>
    </form>
    </div>
<include file="Public/footer"/>